

import 'package:favourcate/ui/shared/screen_fit.dart';

extension IntFit on int {
  // double px() {
  //   return GLScreenFit.setPx(this.toDouble());
  // }
  //  double rpx() {
  //   return GLScreenFit.setRpx(this.toDouble());
  // }
   double get px {
     // this.toDouble() this 可以省略
    return GLScreenFit.setPx(toDouble());
  }
   double get rpx {
    return GLScreenFit.setRpx(toDouble());
  }
}

/// * 使用 
/// 200.px()
/// 400.rpx()
/// * get
/// 200.px
/// 400.rpx